﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FortuneHeavenCommon.DataMap;
using System.Data.SqlClient;

namespace FortuneHeavan.Game.DAL
{
    public class GameScoreLockerDAL : TreasureDBBase
    {
        public GameScoreLocker GetLocker(int userid)
        {
            string sql = "Select * from GameScoreLocker where UserID=@UserID";
            List<GameScoreLocker> list = Query<GameScoreLocker>(sql, new SqlParameter("@UserID", userid));
            if (list != null && list.Count > 0)
            {
                return list[0];
            }
            return null;
        }
    }
}
